<?
require_once  '../classes/ConnectionDB.php';
require_once  '../classes/ClasseDataManager.php';
require_once  '../classes/TestDataManager.php';
require_once  '../bean/Domanda.php';

$connection =ConnectionDB::getInstance()->connectToDB();

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Nuova sottomissione Test Pdf - step 1 - </title>
        <script src="../glassboxLatest/glassbox.2.0.0/javascripts/prototype.js" type="text/javascript"></script>
        <script src="../glassboxLatest/glassbox.2.0.0/javascripts/scriptaculous/effects.js" type="text/javascript"></script>
        <script src="../glassboxLatest/glassbox.2.0.0/javascripts/glassbox/glassbox.js" type="text/javascript"></script>
        <style type="text/css">
            @import url("../css/style.css");

            #testForm {
                padding-top: 3%;
                margin-left: -5px;
            }

            #testFormCont
            {
                padding-left: 2%;
                padding-top: 10%;
            }

            #testFormCont table
            {

            }



        </style>
        <script type="text/javascript">
            path_to_root_dir = "../glassboxLatest/glassbox.2.0.0/";
            var listaDomande;
            var numItem=10;
            var currentIndex=0;

            window.onload = function()
            {
                var testForm = new GlassBox();
                testForm.init( 'testForm', '840px', '390px', 'hidden','',true, false);
                testForm.ipos();
                testForm.appear();
            }

            function checkForm()
            {
                var codiceTest = document.getElementById('codiceTest').value;
                var keyTest = document.getElementById('keyTest').value;

                var strErr = "";
                if(codiceTest.length==0)
                    strErr+="24*";

                if(keyTest.length==0)
                    strErr+="25*";

                if(strErr.length>0)
                {
                    location.href='../portal/manageErrors.php?lista='+strErr;
                    return false;
                }
                return true;

               
            }

            
        </script>
    </head>
    <body>
        <?php include '../portal/header.php';?>
        <center>
            <div id="testForm">
                <div id="testFormCont">
                    <form method="POST" action="reportPdfLiveTest_2.php" onsubmit="return checkForm();">

                        <table cellpadding="13">
                            <tr>
                                <th>Codice test : </th>
                                <td><input type="text" name="codiceTest" id="codiceTest"/></td>
                            </tr>
                            <tr>
                                <th>Key Test : </th>
                                <td>
                                    <input type="text" name="key" id="keyTest" />
                                </td>
                            </tr>
                            
                            <tr>
                                <td colspan="2"></td>
                                <td><input type="submit" value="Continua" /></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </div>
        </center>
    </body>
</html>
